<template>
  <div>
    <van-tabbar
      active-color="#f88"
      route
      inactive-color="#333">
      <van-tabbar-item
        to="/home"
        icon-prefix="icon" icon="shouye">首页</van-tabbar-item>
      <van-tabbar-item
        to="/cate"
        icon-prefix="icon" icon="fenlei1">分类</van-tabbar-item>
      <van-tabbar-item
        to="/cart"
        :badge="$store.state.cart.items.length||''"
        icon-prefix="icon" icon="gwc">购物车</van-tabbar-item>
      <van-tabbar-item
        to="/user"
        icon-prefix="icon" icon="wode">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
